package cn.tj212.xiaoyin.core.course.dao;

import cn.tj212.xiaoyin.common.page.TailPage;
import cn.tj212.xiaoyin.core.course.domain.Course;
import cn.tj212.xiaoyin.core.course.domain.CourseQueryDto;

import java.util.List;

public interface CourseDao {
    Course getById(Long courseId);

    List<Course> queryList(CourseQueryDto queryEntity);

    Integer getTotalItemsCount(Course queryEntity);

    List<Course> queryPage(Course queryEntity, TailPage<Course> page);

    void createSelectivity(Course entity);

    void updateSelectivity(Course entity);

    void delete(Course entity);

    void deleteLogic(Course entity);
}
